import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import Antd from "ant-design-vue";
// import "ant-design-vue/dist/antd.less";
import {
  message,
  Modal,
  Upload,
  Button,
  FormModel,
  DatePicker,
  Switch,
  Layout,
  Radio,
  Checkbox,
  Select,
  Icon,
  Drawer,
  Menu,
  Tabs,
  Table,
  List,
  Tag,
  Divider,
  Input,
  Popconfirm,
  TimePicker
} from "ant-design-vue";
import Authorized from "./components/Authorized";
import Auth from "./directives/auth";
import infiniteScroll from "vue-infinite-scroll";
Vue.config.productionTip = false;
Vue.use(Modal);
Vue.use(Upload);
Vue.use(message);
Vue.use(Button);
Vue.use(Layout);
Vue.use(Icon);
Vue.use(Drawer);
Vue.use(Radio);
Vue.use(Menu);
Vue.use(Tabs);
Vue.use(Table);
Vue.use(List);
Vue.use(Tag);
Vue.use(Checkbox);
Vue.use(Select);
Vue.use(DatePicker);
Vue.use(TimePicker);
Vue.use(Divider);
Vue.use(Input);
Vue.use(Switch);
Vue.use(Popconfirm);
Vue.use(FormModel);
Vue.component("Authorized", Authorized);
Vue.use(Auth);
Vue.use(infiniteScroll);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
